package com.m4u.entity;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.TableGenerator;

@Entity
@Inheritance(strategy = InheritanceType.JOINED)
@TableGenerator(name = "NEGOCIADO_ID", pkColumnValue = "NEGOCIADO_ID", allocationSize = 1)
public abstract class Negociado {

    @Id
    @GeneratedValue(strategy = GenerationType.TABLE, generator = "NEGOCIADO_ID")
    private int id;

    private String nome;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getNome() {
        return nome;
    }

    public void setNome(String nome) {
        this.nome = nome;
    }

}
